package wireless.frequent.service;

import java.util.List;

import org.hibernate.Session;

import wireless.frequent.dao.FrequentLengthDao;
import wireless.frequent.pojo.Frequent;

public class FrequentLengthService {
	protected FrequentLengthDao dao = new FrequentLengthDao();

	protected Session session;
	
	public List<Frequent> findAllDesc(int length,String orderType,int currentPage, int pageSize) {
		return dao.findAllDesc(length, orderType,pageSize * (currentPage - 1), pageSize);
	}
	public long sizeAll(int length) {

		return dao.countAll(length);
	}
}
